import {
    get,
    post
} from "./http"


// export const reqlogin = params =>post("/login",params)
// export const reqregister = params => post("/register",params)
// export const requpload = params =>post("/upload",params,true)
// export const reqregister = params => get("/banner")

//菜单管理接口
// 添加
export const reqmenuadd = parmas => post("/api/menuadd", parmas)
    //列表
export const reqmenulist = parmas => get("/api/menulist", parmas)
    // 一条
export const reqmenuinfo = parmas => get("/api/menuinfo", parmas)
    // 修改
export const reqmenuedit = parmas => post("/api/menuedit", parmas)
    // 删除
export const reqmenudelete = parmas => post("/api/menudelete", parmas)


//角色管理接口
// 添加
export const reqroleadd = parmas => post("/api/roleadd", parmas)
    //列表
export const reqrolelist = parmas => get("/api/rolelist", parmas)
    // 一条
export const reqroleinfo = parmas => get("/api/roleinfo", parmas)
    // 修改
export const reqroleedit = parmas => post("/api/roleedit", parmas)
    // 删除
export const reqroledelete = parmas => post("/api/roledelete", parmas)


//管理员管理接口
// 添加
export const requseradd = parmas => post("/api/useradd", parmas)
    //列表
export const requserlist = parmas => get("/api/userlist", parmas)
    // 一条
export const requserinfo = parmas => get("/api/userinfo", parmas)
    // 修改
export const requseredit = parmas => post("/api/useredit", parmas)
    // 删除
export const requserdelete = parmas => post("/api/userdelete", parmas)
    // 总数
export const requsercount = () => get("/api/usercount")
    // 登录
export const requserlogin = parmas => post("/api/userlogin", parmas)

// 添加商品分类接口
// 添加
export const reqcateadd = parmas => post("/api/cateadd", parmas, true)
    //列表
export const reqcatelist = parmas => get("/api/catelist", parmas)
    // 一条
export const reqcateinfo = parmas => get("/api/cateinfo", parmas)
    // 修改
export const reqcateedit = parmas => post("/api/cateedit", parmas, true)
    // 删除
export const reqcatedelete = parmas => post("/api/catedelete", parmas)


//商品规格接口
// 添加
export const reqspecsadd = parmas => post("/api/specsadd", parmas)
    //列表
export const reqspecslist = parmas => get("/api/specslist", parmas)
    // 一条
export const reqspecsinfo = parmas => get("/api/specsinfo", parmas)
    // 修改
export const reqspecsedit = parmas => post("/api/specsedit", parmas)
    // 删除
export const reqspecsdelete = parmas => post("/api/specsdelete", parmas)
    // 总数
export const reqspecscount = () => get("/api/specscount")


// 会员接口
//列表
export const reqmemberlist = parmas => get("/api/memberlist", parmas)
    // 一条
export const reqmemberinfo = parmas => get("/api/memberinfo", parmas)
    // 修改
export const reqmemberedit = parmas => post("/api/memberedit", parmas)


//商品管理接口
// 添加
export const reqgoodsadd = parmas => post("/api/goodsadd", parmas, true)
    //列表
export const reqgoodslist = parmas => get("/api/goodslist", parmas)
    // 一条
export const reqgoodsinfo = parmas => get("/api/goodsinfo", parmas)
    // 修改
export const reqgoodsedit = parmas => post("/api/goodsedit", parmas, true)
    // 删除
export const reqgoodsdelete = parmas => post("/api/goodsdelete", parmas)
    // 总数
export const reqgoodscount = () => get("/api/goodscount")

// 轮播图管理接口
// 添加
export const reqbanneradd = parmas => post("/api/banneradd", parmas, true)
    //列表
export const reqbannerlist = parmas => get("/api/bannerlist", parmas)
    // 一条
export const reqbannerinfo = parmas => get("/api/bannerinfo", parmas)
    // 修改
export const reqbanneredit = parmas => post("/api/banneredit", parmas, true)
    // 删除
export const reqbannerdelete = parmas => post("/api/bannerdelete", parmas)

// 活动管理接口
// 添加
export const reqseckadd = parmas => post("/api/seckadd", parmas)
    //列表
export const reqsecklist = parmas => get("/api/secklist", parmas)
    // 一条
export const reqseckinfo = parmas => get("/api/seckinfo", parmas)
    // 修改
export const reqseckedit = parmas => post("/api/seckedit", parmas)
    // 删除
export const reqseckdelete = parmas => post("/api/seckdelete", parmas)